<%--
  Created by IntelliJ IDEA.
  User: dell5480
  Date: 2021/7/6
  Time: 9:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body>
<div class="layui-form-item">
    <label class="layui-form-label">房间类型</label>
    <div class="layui-input-block">
        <input type="text" id="type" class="layui-input  layui-disabled"
               style="width: 200px;">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">可容纳人数</label>
    <div class="layui-input-block">
        <input type="text" id="restrictNum" class="layui-input"
               style="width: 200px;">
    </div>
</div>

<div class="layui-form-item">
    <label class="layui-form-label">价格</label>
    <div class="layui-input-block">
        <input type="text" id="price"   class="layui-input"
               style="width: 200px;">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">打折价</label>
    <div class="layui-input-block">
        <input type="text" id="discountPrice"   class="layui-input"
               style="width: 200px;">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">普通会员价</label>
    <div class="layui-input-block">
        <input type="text" id="omPrice"   class="layui-input"
               style="width: 200px;">
    </div>
</div>
<div class="layui-form-item">
    <label class="layui-form-label">vip价</label>
    <div class="layui-input-block">
        <input type="text" id="vipPrice"   class="layui-input"
               style="width: 200px;">
    </div>
</div>

<button class="layui-btn layui-btn-normal"
        style="margin-left: 200px;" onclick="save()">保存</button>
</body>
<script src="layui/layui.js"></script>
<script>
    var $;
    layui.use(['jquery'],function(){
        $ = layui.jquery;

    });

    function save(){
        var index = parent.layer.getFrameIndex(window.name);
        window.parent.updateDept($("#type").val(),$("#restrictNum").val(),$("#price").val(),
            $("#discountPrice").val(),$("#omPrice").val(),$("#vipPrice").val());
        parent.layer.close(index);
    }
</script>


</html>
